package cn.wowjoy.pda.android_pharmacy.api;

import cn.wowjoy.pda.android_pharmacy.model.commonEntity.LoginInfo;
import io.reactivex.Observable;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.Headers;
import retrofit2.http.POST;

/**
 * Created by Administrator on 2018/7/3.
 */

public interface LoginService {
    String BASE_URL = "https://woauth2.rubikstack.com/";

    @FormUrlEncoded
    @Headers("Authorization:Basic MWMwNmYwNDU5MjgyNGE3YmI4NWFjN2IyMGI3MzFlYzY6ODU2MTMzNTIzNTk5NGZhNzllYWVhY2ZkNDc0ZjAyOTg=")
    @POST("oauth/token")
    Observable<LoginInfo> loginw(@Field("grant_type") String type);
}
